<%= form_tag :action => "search" %>
	<label for="search">Search</label> <input type="search" id="query" name="query" value="<%= params[:query] %>" size="40"> 
	<input type="submit" name="search" id="search">
</form>
<div class="spacer_10"></div>
<table id="contacts">
	<tr>
		<th>Name</th>
		<th>E-Mail</th>
		<th>Phone</th>
		<th></th>
	</tr>
	<% for contact in @contacts %>
		<tr id="contact_<%= contact.id %>">
			<td><%= h contact.forename %> <%= h contact.surname %></td>
			<td><%= h contact.email %></td>
			<td><%= h contact.phone %></td>
			<td class="actions">View | <%= link_to "Edit", :action => "edit", :id => contact %> | <%= link_to "Delete", {
				:action => "destroy", 
				:id => contact },
				:confirm => "You are about to delete #{h contact.name}. This can not be undone." %></td>
		</tr>
	<% end %>
</table>